﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using CardClass;

namespace SangoClient
{
    public partial class Page : Canvas
    {
        
        public void Page_Loaded(object o, EventArgs e)
        {
            // Required to initialize variables
            InitializeComponent();
        }

        private void GetRole(object o, EventArgs e)
        {
            // Role Card Distribution
            CardControlRole cr = new CardControlRole();
            cr.RoleText = "R:Fucker";
            cr.LogoURI = "Images/longda.png";

            cr.Left = 500;
            cr.Top = 90;
            CardsPanel.Children.Add(cr);
        }

        private void GetChar(object o, EventArgs e)
        {
            // Character Card Distribution
            CardControlChar cc = new CardControlChar();
            cc.CharText = "C:Longda";
            cc.SkillText = "S:Luck Aura";
            cc.HPText = "HP:4 / 4";
            cc.LogoURI = "Images/yangweili.png";

            Random r = new Random();

            cc.Left = r.NextDouble() * 200;
            cc.Top = r.NextDouble() * 60;
            cc.Angle = (r.NextDouble() - 0.5) * 60;

            CardsPanel.Children.Add(cc);
        }

        private void ClearAll(object o, EventArgs e)
        {
            CardsPanel.Children.Clear();
        }

    }
}
